﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Net;

namespace Arcadium
{
    class GameSessionProperties : NetworkSessionProperties
    {
        public enum MapType
        {
            ConstructionYard,
            RocketSilo,
            MoonTemple
        }

        public enum GameModeType
        {
            Normal,
            SFMT,
            Ambush
        }

        // Constructor

        public GameSessionProperties(NetworkSessionProperties sessionProperties)
        {
            for (int i = 0; i < this.Count; i++)
                this[i] = sessionProperties[i];
        }

        // Getters

        public MapType Map { get { return (MapType)this[0]; } set { this[0] = (int)value; } }
        public GameModeType GameMode { get { return (GameModeType)this[1]; } set { this[1] = (int)value; } }

        // Setters

        public static void SetMap(NetworkSessionProperties properties, MapType map)
        {
            properties[0] = (int)map;
        }

        public static void SetGameMode(NetworkSessionProperties properties, GameModeType gameMode)
        {
            properties[1] = (int)gameMode;
        }


    }
}
